{# 页面左布局开始   侧边栏 #}
<div class="panel panel-danger">
    <div class="panel-heading">
        <h3 class="panel-title">资源分类</h3>
    </div>
    <div class="panel-body">
        {% for source in category_web %}

            <p><a href="/app01/site/{{ username }}/categorys/{{ source.pk }}/">{{ source.name }}</a></p>
        {% empty %}
            <p>未创建资源分类</p>
        {% endfor %}

    </div>
</div>

{#共享笔记的展示#}
<h4>
    <a href="/app01/site/{{ blog.userinfo.username }}/file?back_url={{ request.get_full_path_info }}"
       class=" btn btn-success btn-block">{{ blog.userinfo.username }}共享笔记
        <span class="glyphicon glyphicon-floppy-save"></span></a>
</h4>

<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">帖子分类</h3>
    </div>
    <div class="panel-body">
        {% for cate in category_obj %}

            <p><a href="/app01/site/{{ username }}/category/{{ cate.id }}/">{{ cate.name }}({{ cate.count_num }})</a>
            </p>

        {% endfor %}

    </div>
</div>
<div class="panel panel-danger">
    <div class="panel-heading">
        <h3 class="panel-title">帖子标签</h3>
    </div>
    <div class="panel-body">
        {% for tag in tag_obj %}
            <p><a href="/app01/site/{{ username }}/tag/{{ tag.id }}/">{{ tag.name }}( {{ tag.count_num }})</a></p>
        {% endfor %}

    </div>
</div>
{#            <div class="panel panel-success">#}
{#              <div class="panel-heading">#}
{#                <h3 class="panel-title">时间归档</h3>#}
{#              </div>#}
{#              <div class="panel-body">#}
{#                {% for obj in time_obj %}#}
{#                    <p><a href="/app01/site/{{ username }}/archive/{{ obj.month|date:'Y-m' }}/"> {{ obj.month|date:'Y年m月' }}({{ obj.article_count }})</a></p>#}
{#                {% endfor %}#}
{##}
{#              </div>#}
{#            </div>#}

{#页面右布局结束    侧边栏    #}